package com.tansun.easycare.rule.ruletest.service;
/**
 * Created by Chenbaichuan on 2017/9/22 15:26
 **/

import java.util.concurrent.ExecutionException;

import com.tansun.easycare.rule.common.service.RuleBaseService;
import com.tansun.easycare.rule.exception.BizException;
import com.tansun.easycare.rule.ruletest.entity.RuleTest;

/**
 * @author chenbaichuan
 * @className ContrastTestService
 * @desc
 * @created 2017/9/22 15:26
 **/
public interface ContrastTestService extends RuleBaseService<RuleTest> {
//    List<RuleManageVO> getRuleFlow(String projectCode);
//
//    /**
//     * 获取规则流模型所有版本信息
//     *
//     * @param id 规则流模型ID
//     */
//    List<String> getModelVersion(String id, String projectCode);
//
//    /**
//     * @param ruleFlowCode
//     * @param ruleFlowVersion
//     * @return
//     */
//    List<RuleReq> getAllTestData(String ruleFlowCode, String ruleFlowVersion);
//
//
//    /**
//     * 获取行数据
//     *
//     * @param testId 测试id
//     * @param rowNo  行编号
//     */
//    Map<String, List<RuleResp>> getRowData(String testId, String rowNo);

    /**
     * 执行测试
     *
     * @param excuteData  测试数据
     * @param projectCode 项目编号
     */
	int excuteTest(String testModelId) throws BizException, ExecutionException, InterruptedException;

    /**
     * 对比测试保存或更新
     */
    void saveOrUpdate(RuleTest ruleTest) throws BizException;

//    RuleTest findRuleTestById(String id);
}
